﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.DirectX;

namespace SimulationPresenter.Simulation.Primitive.Joints
{
    internal class SphericalJoint : IJointPrimitive
    {
        public string Name
        {
            get; set;
        }

        public ISimulationPrimitive Actor1 { get; set; }

        public ISimulationPrimitive Actor2 { get; set; }

        public Vector3 Position
        {
            get; set;
        }

        public void PutOrUpdate(SimulationEnvironment enviroment)
        {
            enviroment.Core.JoinActors(Actor1.Name, Actor2.Name, Position, Name);
        }
    }
}
